package com.dao;

import java.io.Serializable;
import java.util.List;

import com.enetiy.Balance;
import com.enetiy.Balanceorder;
import com.enetiy.Keeptime;
import com.enetiy.Ticketuser;
import com.enetiy.Transaction;
import com.enetiy.Vipmember;
import com.enetiy.Viprecord;
import com.util.PagingUilt;

public interface DealDao {
	
	//添加交易明细
	public Serializable insetrTransaction(Transaction transaction) throws Exception;
	//添加vip
	public Serializable insetrVipmember(Vipmember vipmember ) throws Exception;
	
	//添加vip记录
	public Serializable insetrViprecord(Viprecord viprecord ) throws Exception;
	//删除vip
	public void deleteVipmember(Vipmember vipmember) throws Exception;
	
	//创建用户余额
	public Serializable insertBalance(Balance balance) throws Exception;
	//修改用户余额
	public void updateBalance(Balance balance) throws Exception;
	//查询用户余额
	public Balance selectBalance(int userid) throws Exception;
	//查vip 商品id
	public Vipmember selVipmember(int userid , int vipnum) throws Exception;
	//查vip 商品id 记录
	public Viprecord selViprecord(int userid , int vipnum) throws Exception;
	
	//查询用户vip
	public List<Vipmember> selectVipmember(int userid) throws Exception;
	//查询用户交易明细
	public void selectTransaction(PagingUilt<Transaction> pu,int userid) throws Exception;
	
	//查询计时
	public Keeptime selectKeeptime(int userid) throws Exception;
	//查询计时
	public Keeptime selectKeeptime(int userid, int type,int device,int areaid) throws Exception;
	//查询计时
	public Keeptime selectKeeptime(int userid, int type) throws Exception;
	public Keeptime selectKeeptime(int userid, String netorder) throws Exception;
	
	
	//新增计时
	public void insertKeeptime(Keeptime keeptime) throws Exception;
	//修改计时
	public void updateKeeptime(Keeptime keeptime) throws Exception;
	
	//查询用户订单
	public Balanceorder selectBalanceorder(int userid, String orderFrom) throws Exception;
	//新增用户订单
	public Serializable insertBalanceorder(Balanceorder balanceorder) throws Exception;
}
